package com.billiards.dao;

import com.billiards.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserMapper {
    public List<User> selectAll();
    public int addUser(User user);
    public int updateUser(User user);
    public int deleteUser(Integer delId);

    User getUserByUserNameAndPassword(User user);


    public List<User> getUserUsername(String name);


    // ------------- 9.3 -------------------
    boolean update(User user);
    User findById(int id);
    // --------------------------------------



}
